Rnoc\Retainful\Api\AbandonedCart\RestApi D

Total Complexity 132
Dependencies 10
Dependents 2
Total lines 802
Lines of code 416
Logical lines of code 237
Comment lines 287
Methods 46
Properties 23

Methods 46

Method Rating Maintainability Complexity Lines of code
getClientIp()
A
56 8 20
encryptData()
S
54 6 21
formatToIso8601()
S
57 5 16
changeOrderStatus()
S
58 5 16
getLineItemTotal()
S
62 6 10
getCustomerCheckoutDetails()
S
60 5 13
initStorage()
S
60 4 15
setCartToken()
S
59 4 14
markOrderAsRecovered()
S
60 4 12
getUserAcceptLanguage()
S
62 4 11
generateCartHash()
S
62 4 11
getRetainfulApiUrl()
S
68 4 6
getUserAgent()
S
64 4 10
setCartCreatedDate()
S
65 4 9
__construct()
S
70 4 6
setCustomerBillingDetails()
S
64 4 10
setSessionShippingDetails()
S
64 4 10
retrieveCartToken()
S
62 3 11
generateCartToken()
S
55 2 18
isOrderHasValidOrderStatus()
S
58 2 16
isPendingRecovery()
S
68 3 7
canTrackAbandonedCarts()
S
70 3 6
isBuyerAcceptsMarketing()
S
65 3 8
userCartCreatedAt()
S
66 3 8
convertToCurrency()
S
71 3 6
considerFailedAsAbandoned()
S
74 2 4
getCartToken()
S
67 2 8
syncCart()
S
65 2 9
decryptData()
S
62 2 10
refreshFragmentsOnPageLoad()
S
74 2 4
considerCancelledAsAbandoned()
S
74 2 4
considerOnHoldAsAbandoned()
S
74 2 4
isOrderRecovered()
S
68 2 7
isOrderInPendingRecovery()
S
68 2 7
getAddressMapFields()
S
60 1 15
retrieveUserIp()
S
67 2 8
getRecoveryLink()
S
67 1 7
removeSessionShippingDetails()
S
81 1 3
formatDecimalPriceRemoveTrailingZeros()
S
70 1 6
getCurrentCurrencyCode()
S
75 1 4
formatDecimalPrice()
S
73 1 5
formatUserIP()
S
74 1 4
removeSessionBillingDetails()
S
81 1 3
getClientDetails()
S
71 1 6
hashTheData()
S
75 1 4
isValidOrderStatusToResetCartToken()
S
75 1 4